public class Test6 {
    public int aMethod(){
        //static int i = 0; //java中static不能修饰局部变量
        int i=0;
        i++;
        return i;
    }
    public static void main(String args[]){
        Test6 test6 = new Test6();
        test6.aMethod();
        int j = test6.aMethod();
        System.out.println(j);
    }
}